package com.zhang.modules.dict.entity.cmd;

import com.zhang.common.jpa.entity.CMD;
import com.zhang.common.jpa.entity.EditCmd;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * A DTO for the {@link com.zhang.modules.dict.entity.DictData} entity
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EditDataCmd implements Serializable, EditCmd {
    @NotBlank(message = "字典数据id不能为空")
    private String id;
    private Integer dictSort;
    @Size(max = 100)
    private String dictLabel;
    @Size(max = 100)
    private String dictValue;
    @Size(max = 100)
    private String dictType;
    private Character isDefault;
    private Character status;
    @Size(max = 500)
    private String remark;
}